
                <div class="panel panel-success">
                        <div class="panel-heading modal-header" align="center">
                            <h3 class="modal-title" id="updateModelLabel">订单详情</h3>
                        </div>
                   
                        <div class="modal-body panel-body ">   
                            <div class="col-md-offset-3 ">
                                
                                <h4>
                                    <label>订单编号&nbsp;&nbsp;</label>
                                    <label id="orderInfoId">{{orderDetail._id}}</label>
                                </h4>
                            
                                <h4>
                                    <label >顾客姓名&nbsp;&nbsp;</label>
                                    <label id="customerName">{{orderDetail.customer.username}}</label>
                                </h4>
                                <h4>
                                    <label>下单日期&nbsp;&nbsp;</label>
                                    <label>{{orderDetail.createDate|date:'yyyy-MM-dd HH:mm:ss'}}</label>
                                </h4>
                                <h4>
                                    <label>订单内容&nbsp;&nbsp;</label><br>
                                    <table class="col-md-offset-3" ng-repeat="food in orderDetail.foods">
                                        <tr>
                                            <td>{{food.food.name}}&nbsp;&nbsp;&nbsp;&nbsp;{{food.subTotalMoney}}￥&nbsp;&nbsp;&nbsp;&nbsp;×{{food.num}}</td>
                                        </tr>
                                    </table>
                                </h4>
                                <h4>
                                    <label>订单总额&nbsp;&nbsp;</label>
                                    <label>{{orderDetail.allTotalMoney}}￥</label>
                                </h4>
                                <h4>
                                    <label>订单电话&nbsp;&nbsp;</label>
                                    <label>{{orderDetail.phone}}</label>
                                </h4>
                                <h4>
                                    <label>订单地址&nbsp;&nbsp;</label>
                                    <label>{{orderDetail.address}}</label>
                                </h4>
                                <h4>
                                    <label>订单状态&nbsp;&nbsp;</label>
                                    <label>{{orderDetail.status}}</label>
                                </h4>
                                <div ng-switch on="orderDetail.status" >
                                    <div ng-switch-when="正在配送">
                                        <div><label>等待确认：</label>&nbsp;&nbsp;&nbsp;&nbsp;{{now| date:'mm:ss'}}</div>
                                    </div>
                                </div>
                            </div>
                            
                        </div>
                    
                        <div class=" panel-heading modal-footer">
                                <div ng-switch on="orderDetail.status">
                                        <div ng-switch-when="等待商家接单">
                                                <div class="col-md-offset-3 col-md-1 ">
                                                        <button type="submit" class="btn btn-warning" name="button1" ng-click="reject()">拒绝</button>
                                                    </div>
                                                    <div class="col-md-offset-1 col-md-1 ">
                                                        <button type="submit" class="btn btn-primary" name="button2" ng-click="receive()">接受</button>
                                                    </div>
                                                    <div class="col-md-offset-1 col-md-1" >
                                                        <button class="btn btn-default" data-dismiss="modal" ng-click="cancel()">返回</button>
                                                    </div>
                                        </div>
                                        <div ng-switch-when="商家接单">
                                                <div class="col-md-offset-4 col-md-1 ">
                                                        <button class="btn btn-primary" ng-click="delivery()">派送</button>
                                                    </div>
                                                    <div class="col-md-offset-2 col-md-1 ">
                                                            <button class="btn btn-warning" ng-click="cancel()">取消</button> 
                                                    </div>
                                        </div>
                                        <div ng-switch-default>
                                                <div class="col-md-offset-5 col-md-1" >
                                                        <button class="btn btn-default" data-dismiss="modal" ng-click="cancel()">返回</button>
                                                </div>
                                        </div>
                                </div>
                        </div>
                </div>